package edu.cmu.cs.webapp.ioms.dao;

import java.util.List;

import edu.cmu.cs.webapp.ioms.models.Product;

public interface ProductDAO {

	public List<Product> getAllProd() throws DataAccessException;
	
//	either return the error information as an arraylist or just return the boolean value indicating whether the transaction is successful
	public boolean addProd(Product prod) throws DataAccessException;
	
//	tell the current product name has been contained in the table,used for adding new record
	public boolean containProd(Product prod) throws DataAccessException;
	
//	update the record
	public boolean updateProd(Product prod) throws DataAccessException;
	
	public boolean deleteProd(Product prod)throws DataAccessException;
	
	public Product getProduct(Product prod)throws DataAccessException;

}
